package chap10;

import chap8.DVDCollection;
//**********************************************************************************************
//   Movies.java              Author:GK
//
//   Demonstrates the use of an array of objects.
//**********************************************************************************************

public class Movies
{

    //----------------------------------------------------------------------------------------------------------------------------------------------------
    //  Creates a DVDCollection object and adds some DVDs to it. Prints reports on the status of the collection.
    //-----------------------------------------------------------------------------------------------------------------------------------------------------
    public static void main(String[] args)
    {
        chap10.DVDCollection[] movies = new chap10.DVDCollection[7];

        movies[0] = new chap10.DVDCollection("The Godfather", "Francis Ford Coppola", 1972, 24.95, true);
        movies[1] = new chap10.DVDCollection("District 9", "Neill Blomkamp", 2009, 19.95, false);
        movies[2] = new chap10.DVDCollection("Iron Man","Jon Favreau", 2008, 15.95, false);
        movies[3] = new chap10.DVDCollection("All About Eve", "Joseph Mankiewicz", 1950, 17.50, false);
        movies[4] = new chap10.DVDCollection("The Matrix", "Andy & Lana Wachowski", 1999, 19.95, true);
        movies[5] = new chap10.DVDCollection("Iron Man 2","Jon Favreau", 2010, 22.99, false);
        movies[6] = new chap10.DVDCollection("Casablanca","Michael Curtiz", 1942, 19.95, false);
       Sorting.selectionSort(movies);

       for (chap10.DVDCollection eg:movies)
        System.out.println(eg);
    }
}
